﻿using System;

namespace Framework.Validation.Implementation
{
    /// <summary>
    /// Manage creation of <see cref="IValidationResult" /> instances.
    /// </summary>
    public class ValidationResultFactory : IValidationResultFactory
    {
        /// <inheritdoc />
        public IValidationResult Create(string message,
            object target, IValidator validator)
        {
            return new ValidationResult(message, target, validator);
        }
    }
}
